package com.livelab.model;

/**
 *
 * @author Orangeagle- Jason Ambos
 */
public class AttendanceSummary {
    private String lastName;
    private String firstName;
    private int attendanceCount;
    private int maxAttendance;
    private double percentage;
    
    public AttendanceSummary(String lastName, String firstName, int attendanceCount, int maxAttendance) {
        this.lastName = lastName;
        this.firstName = firstName;
        this.attendanceCount = attendanceCount;
        this.maxAttendance = maxAttendance;
        this.percentage = (double)attendanceCount / maxAttendance;
    }

    // Getters and setters
    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        this.lastName = lastName;
    }

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        this.firstName = firstName;
    }

    public int getAttendanceCount() {
        return attendanceCount;
    }

    public void setAttendanceCount(int attendanceCount) {
        this.attendanceCount = attendanceCount;
    }

    public int getMaxAttendance() {
        return maxAttendance;
    }

    public void setMaxAttendance(int maxAttendance) {
        this.maxAttendance = maxAttendance;
    }

    public double getPercentage() {
        return percentage;
    }
    
    public void setPercentage(double percentage) {
        this.percentage = percentage;
    }
}
